package com.hzhr.iot.user.dao.mapper.custom;

import com.hzhr.iot.user.entity.ResourceEntity;
import com.hzhr.iot.user.entity.ext.ResourceEntityExt;
import com.hzhr.iot.user.queryModel.custom.ResourceCustomQueryModel;

import java.util.List;

public interface ResourceEntityCustomMapper {
    //批量新增
    int insertBatch(List<ResourceEntity> recordList);
    //批量更新
    int updateBatch(List<ResourceEntity> recordList);
    //批量更新
    int updateBatchSelective(List<ResourceEntity> recordList);
    //通用查询
    List<ResourceEntityExt> selectExt(ResourceCustomQueryModel queryModel);
    //通用查询数量
    int selectCount(ResourceCustomQueryModel queryModel);
    //通用修改属性
    int updateProps(ResourceCustomQueryModel queryModel);
    //通用删除
    int delete(ResourceCustomQueryModel queryModel);

    //自定义查询
    List<ResourceEntityExt> selectExt1(ResourceCustomQueryModel queryModel);
    int selectCount1(ResourceCustomQueryModel queryModel);
    int selectCount2(ResourceCustomQueryModel queryModel);
}
